package com.cskaoyan.app.mapper;

import com.cskaoyan.app.bean.po.MarketCart;
import com.cskaoyan.app.bean.po.MarketCartExample;
import com.cskaoyan.app.bean.vo.CartTotalVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MarketCartMapper {
    long countByExample(MarketCartExample example);

    int deleteByExample(MarketCartExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketCart record);

    int insertSelective(MarketCart record);

    List<MarketCart> selectByExample(MarketCartExample example);

    MarketCart selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") MarketCart record, @Param("example") MarketCartExample example);

    int updateByExample(@Param("record") MarketCart record, @Param("example") MarketCartExample example);

    int updateByPrimaryKeySelective(MarketCart record);

    int updateByPrimaryKey(MarketCart record);

    MarketCart selectCart(Integer goodsId,Integer productId);

    Integer selectIdByUsername(String username);

    Integer selectData();

    Map selectCartTotalByChecked();

    Map selectCartTotal();

    void updateCart(Integer id, Short number);

}